Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update effect #83

Merged
merged 1 commit into from
Feb 17, 2025
Merged

fix(deps): update effect #83

merged 1 commit into from
Feb 17, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 17, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@effect/cli (source) 0.55.0 -> 0.56.1 age adoption passing confidence
@effect/platform (source) 0.76.0 -> 0.77.1 age adoption passing confidence
@effect/platform-node (source) 0.72.0 -> 0.73.1 age adoption passing confidence
@effect/sql (source) 0.29.0 -> 0.30.1 age adoption passing confidence
@effect/sql-clickhouse (source) 0.14.0 -> 0.15.1 age adoption passing confidence
@effect/sql-mysql2 (source) 0.30.0 -> 0.31.1 age adoption passing confidence
@effect/sql-pg (source) 0.30.0 -> 0.31.1 age adoption passing confidence
@effect/vitest (source) 0.17.7 -> 0.18.1 age adoption passing confidence

Release Notes

Effect-TS/effect (@​effect/cli)

v0.56.1

Compare Source

Patch Changes

v0.56.0

Compare Source

Patch Changes

v0.55.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/platform)

v0.77.1

Compare Source

Patch Changes

v0.77.0

Compare Source

Patch Changes

v0.76.1

Compare Source

Patch Changes
  • #​4444 c407726 Thanks @​gcanti! - HttpApiBuilder: URL parameters are now automatically converted to arrays when needed, closes #​4442.

    Example

    import {
      HttpApi,
      HttpApiBuilder,
      HttpApiEndpoint,
      HttpApiGroup,
      HttpMiddleware,
      HttpServer
    } from "@​effect/platform"
    import { NodeHttpServer, NodeRuntime } from "@​effect/platform-node"
    import { Effect, Layer, Schema } from "effect"
    import { createServer } from "node:http"
    
    const api = HttpApi.make("api").add(
      HttpApiGroup.make("group").add(
        HttpApiEndpoint.get("get", "/")
          .addSuccess(Schema.String)
          .setUrlParams(
            Schema.Struct({
              param: Schema.NonEmptyArray(Schema.String)
            })
          )
      )
    )
    
    const usersGroupLive = HttpApiBuilder.group(api, "group", (handlers) =>
      handlers.handle("get", (req) =>
        Effect.succeed(req.urlParams.param.join(", "))
      )
    )
    
    const MyApiLive = HttpApiBuilder.api(api).pipe(Layer.provide(usersGroupLive))
    
    const HttpLive = HttpApiBuilder.serve(HttpMiddleware.logger).pipe(
      Layer.provide(MyApiLive),
      HttpServer.withLogAddress,
      Layer.provide(NodeHttpServer.layer(createServer, { port: 3000 }))
    )
    
    Layer.launch(HttpLive).pipe(NodeRuntime.runMain)

    Previously, if a query parameter was defined as a NonEmptyArray (an array that requires at least one element), providing a single value would cause a parsing error.

    For example, this worked fine:

    curl "http://localhost:3000/?param=1&param=2"

    But this would fail:

    curl "http://localhost:3000/?param=1"

    Resulting in an error because "1" was treated as a string instead of an array.

    With this update, single values are automatically wrapped in an array, so they match the expected schema without requiring manual fixes.

  • Updated dependencies [4018eae, 543d36d, f70a65a, ba409f6, 3d2e356]:

Effect-TS/effect (@​effect/platform-node)

v0.73.1

Compare Source

Patch Changes

v0.73.0

Compare Source

Patch Changes

v0.72.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/sql)

v0.30.1

Compare Source

Patch Changes

v0.30.0

Compare Source

Patch Changes

v0.29.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/sql-clickhouse)

v0.15.1

Compare Source

Patch Changes

v0.15.0

Compare Source

Patch Changes

v0.14.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/sql-mysql2)

v0.31.1

Compare Source

Patch Changes

v0.31.0

Compare Source

Patch Changes

v0.30.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/sql-pg)

v0.31.1

Compare Source

Patch Changes

v0.31.0

Compare Source

Patch Changes

v0.30.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/vitest)

v0.18.1

Compare Source

Patch Changes

v0.18.0

Compare Source

Patch Changes

v0.17.8

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) February 17, 2025 02:52
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.28%. Comparing base (56d2063) to head (beebe2c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   45.28%   45.28%           
=======================================
  Files          33       33           
  Lines        1473     1473           
  Branches      116      116           
=======================================
  Hits          667      667           
  Misses        791      791           
  Partials       15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/effect branch from 9eed168 to beebe2c Compare February 17, 2025 02:54
@renovate renovate bot merged commit e0c876a into main Feb 17, 2025
2 checks passed
@renovate renovate bot deleted the renovate/effect branch February 17, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant